package ua.org.oa.ishchenko;

public class TestGarage {

	public static void main(String[] args) {
		
		Garage garage1 = new Garage(new Car("Porshe"), new Car("Volkswagen","Red"));
//		garage1.car1 = new Car("Porshe");
//		garage1.car2 = new Car("Volkswagen","Red");
		garage1.car3 = new Car(2015);
		System.out.println(garage1.car1.name);
		System.out.println(garage1.car1.color);
		System.out.println(garage1.car1.yearProduce);
		System.out.println("~~~~~~");
		
		System.out.println(garage1.car2.name);
		System.out.println(garage1.car2.color);
		System.out.println(garage1.car2.yearProduce);
		System.out.println("~~~~~~");
		
		System.out.println(garage1.car3.name);
		System.out.println(garage1.car3.color);
		System.out.println(garage1.car3.yearProduce);

		}
	}


